package cn.eric.framework.utils.general.merge;

/**
 * 没有实现接口 或 patch 的目标不正确
 */
public class NotPatchOrNotSuitableTargetException extends RuntimeException {
    public NotPatchOrNotSuitableTargetException(Class clazz) {
        super(String.format("Patch domain %s should implement EMergePatch.", clazz.getSimpleName()));
    }

    public NotPatchOrNotSuitableTargetException(Class patch, Class base) {
        super(String.format("Patch %s not suitable with Target %s.", patch.getSimpleName(), base.getSimpleName()));
    }
}
